package com.itheima_05;

/**
 * @author Xiao
 * @date 2021/7/5
 */
public class StringDemo01 {
    /*
        String类常见构造方法
     */
    public static void main(String[] args) {
        String s1 = new String();
        System.out.println(s1);
        System.out.println("-------------");
        char[] ch = {'A', 'B','C'};
        String s2 = new String(ch);
        System.out.println(s2);
        System.out.println("-------------");
        String s3 = new String("abc");
        System.out.println(s3);
        System.out.println("-------------");
        String s4 = "123";
        System.out.println(s4);
    }
}
